//
//  FlyBaseTableViewCell.m
//  EnjoyShoppingStreet
//
//  Created by lifayu on 2017/5/19.
//  Copyright © 2017年 lifayu. All rights reserved.
//

#import "FlyBaseTableViewCell.h"

@implementation FlyBaseTableViewCell

#pragma mark 获取当前cell的viewController
- (UIViewController *)getViewController
{
    for (UIView *next = [self superview]; next; next = next.superview)
    {
        UIResponder *nextResponder = [next nextResponder];
        if ([nextResponder isKindOfClass:[UIViewController class]])
        {
            return (UIViewController *)nextResponder;
        }
    }
    return nil;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
